<tagLib name="html" />
<include file="Public:header" />
<script src="/Public/source/jquery.js"></script>
<script>
$(document).ready(function(){
	$('.tableborder').hide('fast');
	<switch name="Think.get.action">
	<case value="base">$('.pic').show('fast');</case>
	<case value="water">$('.number').show('fast');</case>
	<case value="email">$('.config').show('fast');</case>
	<case value="qqlogin">$('.qqlogin').show('fast');</case>
	<default/>$('.pic').show('fast');
	</switch>
});
function show(i){
	$('.tableborder').hide('fast');
	$('.'+i).show('fast');
}
</script>
<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
    <div style="float:left;"><a href="{YICMS::U('Index/stat')}" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;其他设置</div>
</div>
<form action="__URL__/checkOther/" method="post">
	<table cellspacing="1" cellpadding="4" width="100%" align="center">
        <tr>
            <td width="15%"><a onclick="show('pic')" class="button">基本设置</a></td>
            <td width="15%"><a onclick="show('number')" class="button">水印设置</a></td>
            <td width="15%"><a onclick="show('config')" class="button">邮件设置</a></td>
            <td width="15%"><a onclick="show('qqlogin')" class="button">QQ登录</a></td>
            <td width="15%"><a onclick="show('seoconf')" class="button">优化设置</a></td>
            <td width="15%"><a onclick="show('user')" class="button">会员设置</a></td>
        </tr>
	</table>
    <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder pic">
        <tr class="header">
            <td colspan="2">基本设置</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>feed订阅账号:</td>
            <td class="altbg2">
				<input type="text" style="width:150px;" value="{YICMS::C('feedid')}" name="feedid" /> 
			</td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>审贴时显示内容</td>
            <td class="altbg2">
				<input type="text" style="width:150px;" value="{YICMS::C('ticketmsg')}" name="ticketmsg" /> 
			</td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>前台右侧热门标签显示个数:</td>
            <td class="altbg2">
				<input type="text" style="width:50px;" value="{YICMS::C('tagnum')}" name="tagnum" /> 个
			</td>
		</tr>

		<tr>
            <td class="altbg1" width="20%"><b>内容列表显示数量:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('listnews')}" name="listnews" style="width:50px;"/>&nbsp;&nbsp;条</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>内容大图片最大宽度:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('newsmwidth')}" name="newsmwidth" style="width:50px;"/>&nbsp;&nbsp;像素</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>内容大图片最大高度:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('newsmheight')}" name="newsmheight" style="width:50px;"/>&nbsp;&nbsp;像素</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>内容小图片最大宽度:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('newsswidth')}" name="newsswidth" style="width:50px;"/>&nbsp;&nbsp;像素</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>内容小图片最大高度:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('newssheight')}" name="newssheight" style="width:50px;"/>&nbsp;&nbsp;像素</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>幻灯片图片宽度:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('flashwidth')}" name="flashwidth" style="width:50px;"/>&nbsp;&nbsp;像素</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>幻灯片图片高度:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('flashheight')}" name="flashheight" style="width:50px;"/>&nbsp;&nbsp;像素</td>
        </tr>

		<tr>
            <td class="altbg1" width="20%"><b>两次搜索时间间隔:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('searchtime')}" name="searchtime" style="width:50px;"/>&nbsp;&nbsp;秒</td>
        </tr>
	</table>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder number">
		<tr class="header">
            <td colspan="2">水印设置</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>开启水印:</td>
            <td class="altbg2">
				<input type="radio" value="1" name="getwater"
					<php>$getwater = C('getwater');if($getwater) echo 'checked';</php>
				/>图片水印&nbsp;&nbsp;&nbsp;
				<input type="radio" value="0" name="getwater"
				<php>if(!$getwater) echo 'checked';</php>
				/>文字水印
			</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>水印文字内容:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('watertext')}" name="watertext" style="width:150px;"/>文字为空则不采用水印!</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>文字大小:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('watersize')}" name="watersize" style="width:150px;"/></td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>文字颜色:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('watercolor')}" name="watercolor" style="width:150px;"/>#FFFFFF为白色 #000000为黑色</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>水印文字字体:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('waterfont')}" name="waterfont" style="width:150px;"/>水印字体路径Public/source/</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>水印图片地址:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('waterimg')}" name="waterimg" style="width:150px;"/> 水印图片路路径/Public/source/</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>水印位置:</td>
            <td class="altbg2">
				<table cellspacing="1" cellpadding="4" width="500" align="left" class="tableborder number">
				<tr>
					<td rowspan="3"><input type="radio" name="waterpos" value="10" {YICMS:$waterpos.10}/>随机位置</td>
					<td><input type="radio" name="waterpos" value="1" {YICMS:$waterpos.1}/>顶部居左</td>
					<td><input type="radio" name="waterpos" value="2" {YICMS:$waterpos.2}/>顶部居中</td>
					<td><input type="radio" name="waterpos" value="3" {YICMS:$waterpos.3}/>顶部居右</td>
				</tr>
				<tr>
					<td><input type="radio" name="waterpos" value="4" {YICMS:$waterpos.4}/>左部居中</td>
					<td><input type="radio" name="waterpos" value="5" {YICMS:$waterpos.5}/>左部居左</td>
					<td><input type="radio" name="waterpos" value="6" {YICMS:$waterpos.6}/>左部居右</td>
				</tr>
				<tr>
					<td><input type="radio" name="waterpos" value="7" {YICMS:$waterpos.7}/>底部居左</td>
					<td><input type="radio" name="waterpos" value="8" {YICMS:$waterpos.8}/>底部居中</td>
					<td><input type="radio" name="waterpos" value="9" {YICMS:$waterpos.9}/>底部居右</td>
				</tr>
				</table>
			</td>
        </tr>
	</table>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder config">
		<tr class="header">
            <td colspan="3">邮件设置</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>smtp服务器地址:</td>
            <td class="altbg2" width="50%"><input type="text" value="{YICMS::C('smtpserver')}" name="smtpserver" style="width:150px;"/></td>
			<td>例如:smtp.qq.com</td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>smtp服务器端口:</td>
            <td class="altbg2" width="50%"><input type="text" value="{YICMS::C('smtpport')}" name="smtpport" style="width:150px;"/></td>
			<td> 一般为 25</td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>smtp服务器用户名:</td>
        	<td class="altbg2" width="50%"><input type="text" value="{YICMS::C('smtpuser')}" name="smtpuser" style="width:150px;"/></td>
			<td> 例如 : 2454377250</td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>smtp服务器密码:</td>
            <td class="altbg2" width="50%"><input type="password" value="{YICMS::C('smtppwd')}" name="smtppwd" style="width:150px;"/></td>
			<td> 例如 : qiushi</td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>糗事审核通过发送邮件:</td>
             <td class="altbg2" colspan="2">
				<input type="radio" value="1" name="passemail"
					<php>$passemail = C('passemail');if($passemail) echo 'checked';</php>
				/>发送&nbsp;&nbsp;&nbsp;
				<input type="radio" value="0" name="passemail"
				<php>if(!$passemail) echo 'checked';</php>
				/>不发送
			</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>糗事审核通过邮件标题:</td>
            <td class="altbg2" colspan="2"><input type="text" value="{YICMS::C('smtpsubject')}" name="smtpsubject" style="width:350px;"/></td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>糗事审核通过邮件内容:</td>
            <td class="altbg2" width="50%"><textarea type="text" name="smtpbody" style="width:500px;height:100px;">{YICMS::C('smtpbody')}</textarea></td>
			<td>
				 * {username} 代表用户名<br/>
				&nbsp;&nbsp;&nbsp;{time} 代表当前时间
			</td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>注册时发送邮件验证并验证后才能登录:</td>
             <td class="altbg2" colspan="2">
				<input type="radio" value="1" name="regemail"
					<php>$regemail = C('regemail');if($regemail) echo 'checked';</php>
				/>是&nbsp;&nbsp;&nbsp;
				<input type="radio" value="0" name="regemail"
				<php>if(!$regemail) echo 'checked';</php>
				/>否
			</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>注册时邮件验证标题:</td>
            <td class="altbg2" colspan="2"><input type="text" value="{YICMS::C('regtitle')}" name="regtitle" style="width:350px;"/></td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>注册时邮件验证内容:</td>
            <td class="altbg2" width="50%"><textarea type="text" name="regcontent" style="width:500px;height:100px;">{YICMS::C('regcontent')}</textarea></td>
			<td>
				 * {username} 代表用户名<br/>
				&nbsp;&nbsp;&nbsp;{time} 代表当前时间<br/>
				&nbsp;&nbsp;&nbsp;{code} 代表验证代码
			</td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>找回密码时邮件验证标题:</td>
            <td class="altbg2" colspan="2"><input type="text" value="{YICMS::C('fetchtitle')}" name="fetchtitle" style="width:350px;"/></td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>找回密码时邮件验证内容:</td>
            <td class="altbg2" width="50%"><textarea type="text" name="fetchcontent" style="width:500px;height:100px;">{YICMS::C('fetchcontent')}</textarea></td>
			<td>
				 * {username} 代表用户名<br/>
				&nbsp;&nbsp;&nbsp;{time} 代表当前时间<br/>
				&nbsp;&nbsp;&nbsp;{code} 代表验证代码
			</td>
		</tr>
	</table>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder qqlogin">
		<tr class="header">
            <td colspan="3">QQ登录设置</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>启用QQ登录功能:</td>
            <td class="altbg2" colspan="2">
				<input type="radio" value="1" name="qqlogin"
					<php>$qqlogin = C('qqlogin');if($qqlogin) echo 'checked';</php>
				/>是&nbsp;&nbsp;&nbsp;
				<input type="radio" value="0" name="qqlogin"
				<php>if(!$qqlogin) echo 'checked';</php>
				/>否
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请确保已申请通过QQ登录。。申请地址：&nbsp;&nbsp;<a href="http://connect.qq.com" target="_blank">http://connect.qq.com</a>
			</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>QQ登录 APP ID:</td>
            <td class="altbg2" colspan="2"><input type="text" value="{YICMS::C('qqappid')}" name="qqappid" style="width:150px;"/>&nbsp;&nbsp;&nbsp;申请通过后查看APPID地址 &nbsp;&nbsp;<a href="http://connect.qq.com/manage/" target="_blank">http://connect.qq.com/manage/</a></td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>QQ登录 KEY:</td>
            <td class="altbg2" colspan="2"><input type="text" value="{YICMS::C('qqkey')}" name="qqkey" style="width:150px;"/>&nbsp;&nbsp;&nbsp;申请通过后查看APPID地址 &nbsp;&nbsp;<a href="http://connect.qq.com/manage/" target="_blank">http://connect.qq.com/manage/</a></td>
		</tr>
		<tr class="header">
            <td colspan="3">腾讯微博登录设置</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>启用腾讯微博登录功能:</td>
            <td class="altbg2" colspan="2">
				<input type="radio" value="1" name="tweibologin"
					<php>$tweibologin = C('tweibologin');if($tweibologin) echo 'checked';</php>
				/>是&nbsp;&nbsp;&nbsp;
				<input type="radio" value="0" name="tweibologin"
				<php>if(!$tweibologin) echo 'checked';</php>
				/>否
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请确保已申请通过腾讯微博登录。。申请地址：&nbsp;&nbsp;<a href="http://dev.t.qq.com" target="_blank">http://dev.t.qq.com</a>
			</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>腾讯微博登录 App Key:</td>
            <td class="altbg2" colspan="2"><input type="text" value="{YICMS::C('tweiboappid')}" name="tweiboappid" style="width:150px;"/>&nbsp;&nbsp;&nbsp;申请通过后查看APPID地址 &nbsp;&nbsp;<a href="http://dev.t.qq.com/development" target="_blank">http://dev.t.qq.com/development</a></td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>腾讯微博登录 App Secret:</td>
            <td class="altbg2" colspan="2"><input type="text" value="{YICMS::C('tweibokey')}" name="tweibokey" style="width:150px;"/>&nbsp;&nbsp;&nbsp;申请通过后查看APPID地址 &nbsp;&nbsp;<a href="http://dev.t.qq.com/development" target="_blank">http://dev.t.qq.com/development</a></td>
		</tr>
	</table>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder seoconf">
		<tr class="header">
            <td colspan="3">优化设置</td>
        </tr>

		<tr>
            <td class="altbg1" width="20%"><b>开启tag标签自动匹配发帖内容:</td>
            <td class="altbg2">
				<input type="radio" value="1" <php> if(C('opencws')) echo 'checked'; </php> name="opencws" />开启 &nbsp;  &nbsp;  &nbsp; 
				<input type="radio" value="0" <php> if(!C('opencws')) echo 'checked'; </php> name="opencws" />关闭
			</td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>随机当天顶帖数量最小值:</td>
            <td class="altbg2">
				<input type="text" style="width:50px;" value="{YICMS::C('yesmin')}" name="yesmin" /> 次
			</td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>随机当天顶帖数量最大值:</td>
            <td class="altbg2">
				<input type="text" style="width:50px;" value="{YICMS::C('yesmax')}" name="yesmax" /> 次
			</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>随机当天踩帖数量最小值:</td>
            <td class="altbg2">
				<input type="text" style="width:50px;" value="{YICMS::C('nomin')}" name="nomin" /> 次
			</td>
		</tr>
		<tr>
            <td class="altbg1" width="20%"><b>随机当天踩帖数量最大值:</td>
            <td class="altbg2">
				<input type="text" style="width:50px;" value="{YICMS::C('nomax')}" name="nomax" /> 次
			</td>
        </tr>
	</table>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder user">
		<tr class="header">
            <td colspan="3">会员设置</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>网友审贴通过数量:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('netpass')}" name="netpass" style="width:50px;"/>&nbsp;&nbsp;次</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>网友审贴不通过数量:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('netnopass')}" name="netnopass" style="width:50px;"/>&nbsp;&nbsp;次</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>举报多少次删除评论:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('maxreport')}" name="maxreport" style="width:50px;"/>&nbsp;&nbsp;次</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>是否开启邀请码注册:</td>
            <td class="altbg2">
				<input type="radio" value="1" name="getcode"
					<php>$getcode = C('getcode');if($getcode) echo 'checked';</php>
				/>开启&nbsp;&nbsp;&nbsp;
				<input type="radio" value="0" name="getcode"
				<php>if(!$getcode) echo 'checked';</php>
				/>不开启
			</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>每天可申请邀请码数量:</td>
            <td class="altbg2"><input type="text" value="{YICMS::C('codeNum')}" name="codeNum" style="width:50px;"/>&nbsp;&nbsp;输入0即不允许申请邀请码!</td>
        </tr>
		<tr>
            <td class="altbg1" width="20%"><b>回复是否需要登陆:</td>
            <td class="altbg2">
				<input type="radio" value="1" name="reply"
					<php>$reply = C('reply');if($reply) echo 'checked';</php>
				/>需要&nbsp;&nbsp;&nbsp;
				<input type="radio" value="0" name="reply"
				<php>if(!$reply) echo 'checked';</php>
				/>不需要
			</td>
        </tr>
	</table>
    <br/>
    <center><input type="submit" class="button" value="提 交"></center><br>
</form>
<br>
<include file="Public:footer" />